import http from '@/plugins/axios'

/**
 * 获取子账号分配客服页面
 * @param data 
 * @returns 
 */
export function getZzhFpkfList(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/subAccount/getZzhFpkfList',
        data
    })
}


/**
 * 根据分公司id获取客服列表
 * @param data 
 * @returns 
 */
export function getKfList(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/subAccount/getKfList',
        data
    })
}

/**
 * 子账号分配客服
 * @param data
 * @returns 
 */
export function postZzhFpkf(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/subAccount/postZzhFpkf',
        data
    })
}

/**
 * 撤销分配客服
 * @param data 
 * @returns 
 */
export function postFpkfRevoke(data) {
    return http({
        method: 'POST',
        url: '/new/ykf/subAccount/postFpkfRevoke',
        data
    })
}